home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume13 / chemtab / patch01 < prev    next >
Encoding:
Text File  |  1990-06-21  |  32.6 KB  |  1,205 lines

  1. Newsgroups: comp.sources.misc
  2. From: root@lsrhs.UUCP (Mr System)
  3. Subject: v13i063: chemtab patch 1
  4. Sender: allbery@uunet.UU.NET (Brandon S. Allbery - comp.sources.misc)
  5.  
  6. Posting-number: Volume 13, Issue 63
  7. Submitted-by: root@lsrhs.UUCP (Mr System)
  8. Archive-name: chemtab/patch01
  9.  
  10. #! /bin/sh
  11. # This is a shell archive.  Remove anything before this line, then unpack
  12. # it by saving it into a file and typing "sh file".  To overwrite existing
  13. # files, type "sh file -c".  You can also feed this as standard input via
  14. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  15. # will see the following message at the end:
  16. #        "End of shell archive."
  17. # Contents:  README.PATCH01 patch01 VERSION
  18. # Wrapped by pulsar@lsrhs on Thu Jun 21 00:26:42 1990
  19. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  20. if test -f 'README.PATCH01' -a "${1}" != "-c" ; then 
  21.   echo shar: Will not clobber existing file \"'README.PATCH01'\"
  22. else
  23. echo shar: Extracting \"'README.PATCH01'\" \(2116 characters\)
  24. sed "s/^X//" >'README.PATCH01' <<'END_OF_FILE'
  25. Hello!  By taking the time to pull this patch off the net, I assume
  26. that you have unpacked and compiled Chemtab Version 1.0.  I'm glad
  27. that you could find a use for my program, entertainment, education or
  28. what have you.  This is the first patch to Chemtab V1.0, which contains
  29. minimal patches.  
  30. X    *** I ask that someone out there, perhaps you, would look at the
  31. X        code for wgetnum() in dogph.c.  The delete does not work as
  32. X        it should, and I have tried to fix it too many times and failed.
  33. X        Please, if you manage to fix it up, send the fixes to me and
  34. X        I will post them to the world (with a letter of gratitude!)
  35. X
  36. Here is what's fixed:
  37. X
  38. Problem 1) If the transcript file could not be opened, the core dumped
  39. X       because the program did not check to see if there was an error
  40. X       opening this file.  This has been corrected.
  41. Problem 2) A curses macro (wgetch()) wal called with no argument.  This made
  42. X       no difference on my system (strange) but it did on others.
  43. X       This was fixed.
  44. Problem 3) The program seemed to think it could get away with making 
  45. X       a transcript of what you were doing even if you typed NO for
  46. X       a transcript.  This SHOULD be fixed!
  47. Problem 4) In cleanup.c, I forgot to make the program portable by letting
  48. X       people use their own lpr program.  Files tune.h and cleanup.c
  49. X       were changed to fix this small problem.  Please check tune.h
  50. X       and make sure every pathname and program name will work on your
  51. X       system!
  52. Misc)    Unused and redeclared variables have been fixed, with the help of
  53. X    lint!
  54. X
  55. Thanks to Peter Knoppers - knop@duteca.tudelft.nl in the Netherlands
  56. for his speedy and helpful feedback to get these patches out ASAP so that
  57. people can actually USE the program.
  58. X
  59. X*** Anyone who is interested in hacking the code up to make the program
  60. X    completely SYSV portable (or any other system for that matter) please
  61. X    do, and send the diffs to me!
  62. X
  63. X*** Chemtab 2.0 is currently being written .. Chemtab 2.0 is the MAC version.
  64. X    hopefully, once it is finished, it will be available to the general
  65. X    public for use!
  66. X
  67. Thanks for reading this whole thing! - Jim
  68. END_OF_FILE
  69. if test 2116 -ne `wc -c <'README.PATCH01'`; then
  70.     echo shar: \"'README.PATCH01'\" unpacked with wrong size!
  71. fi
  72. chmod +x 'README.PATCH01'
  73. # end of 'README.PATCH01'
  74. fi
  75. if test -f 'patch01' -a "${1}" != "-c" ; then 
  76.   echo shar: Will not clobber existing file \"'patch01'\"
  77. else
  78. echo shar: Extracting \"'patch01'\" \(28115 characters\)
  79. sed "s/^X//" >'patch01' <<'END_OF_FILE'
  80. diff -c3 Original/cleanup.c Patch01/cleanup.c
  81. X*** Original/cleanup.c    Wed Jun 20 23:17:43 1990
  82. X--- Patch01/cleanup.c    Wed Jun 20 23:47:31 1990
  83. X***************
  84. X*** 8,13
  85. X  #include <stdio.h>
  86. X  #include "windows.h"
  87. X  #include "variables.h"
  88. X  
  89. X  /*
  90. X   * cleanup() - no input
  91. X
  92. X--- 8,14 -----
  93. X  #include <stdio.h>
  94. X  #include "windows.h"
  95. X  #include "variables.h"
  96. X+ #include "tune.h"
  97. X  
  98. X  /*
  99. X   * cleanup() - no input
  100. X***************
  101. X*** 31,37
  102. X              wprintw(btm, "yes");
  103. X              wrefresh(btm);
  104. X              fclose(fp);
  105. X!             sprintf(str, "/usr/local/bin/letter -h %d.chemtab", getpid());
  106. X              system(str);
  107. X              wclear(btm);
  108. X              wrefresh(btm);
  109. X
  110. X--- 32,38 -----
  111. X              wprintw(btm, "yes");
  112. X              wrefresh(btm);
  113. X              fclose(fp);
  114. X!             sprintf(str, "%s %d.chemtab", PRINTER, getpid());
  115. X              system(str);
  116. X              wclear(btm);
  117. X              wrefresh(btm);
  118. diff -c3 Original/dogph.c Patch01/dogph.c
  119. X*** Original/dogph.c    Wed Jun 20 23:17:46 1990
  120. X--- Patch01/dogph.c    Wed Jun 20 23:47:30 1990
  121. X***************
  122. X*** 22,28
  123. X  WINDOW    *win;
  124. X  {
  125. X      char    c, glop[80], *ptr;
  126. X!     int    i, stopfl = 0, y, x;
  127. X  
  128. X      noecho(); crmode();
  129. X      for (i = 0; i < 80; i++) {
  130. X
  131. X--- 22,28 -----
  132. X  WINDOW    *win;
  133. X  {
  134. X      char    c, glop[80], *ptr;
  135. X!     int    stopfl = 0, y;
  136. X  
  137. X      noecho(); crmode();
  138. X      for (i = 0; i < 80; i++) {
  139. diff -c3 Original/element.c Patch01/element.c
  140. X*** Original/element.c    Wed Jun 20 23:17:48 1990
  141. X--- Patch01/element.c    Wed Jun 20 23:47:31 1990
  142. X***************
  143. X*** 21,29
  144. X   */
  145. X  readelem()
  146. X  {
  147. X!     char    foo[160];            /* input line */
  148. X!     int    i;                /* for loop int */
  149. X!     FILE    *fp;                /* File pointer for PERTABLE */
  150. X  
  151. X      if ((fp = fopen(PERTABLE, "r")) == NULL) { /* Open it please */
  152. X          bot("Cannot open element data file");
  153. X
  154. X--- 21,28 -----
  155. X   */
  156. X  readelem()
  157. X  {
  158. X!     char    inp[160];            /* input line */
  159. X!     FILE    *fptr;                /* File pointer for PERTABLE */
  160. X  
  161. X      if ((fptr = fopen(PERTABLE, "r")) == NULL) { /* Open it please */
  162. X          bot("Cannot open element data file");
  163. X***************
  164. X*** 25,31
  165. X      int    i;                /* for loop int */
  166. X      FILE    *fp;                /* File pointer for PERTABLE */
  167. X  
  168. X!     if ((fp = fopen(PERTABLE, "r")) == NULL) { /* Open it please */
  169. X          bot("Cannot open element data file");
  170. X          sleep(3);
  171. X          cleanup();
  172. X
  173. X--- 24,30 -----
  174. X      char    inp[160];            /* input line */
  175. X      FILE    *fptr;                /* File pointer for PERTABLE */
  176. X  
  177. X!     if ((fptr = fopen(PERTABLE, "r")) == NULL) { /* Open it please */
  178. X          bot("Cannot open element data file");
  179. X          sleep(3);
  180. X          cleanup();
  181. X***************
  182. X*** 31,38
  183. X          cleanup();
  184. X      }
  185. X  
  186. X!     fgets(foo, 160, fp);            /* Read in comment line */
  187. X!     fgets(foo, 160, fp);            /* Eat the spacer */
  188. X  
  189. X      for (i = 1; i < MAXLM+1; i++) {        /* Munch that damn line!! */
  190. X          if (fscanf(fp, "%s%s%d%d%d%d%d%d%d%d%d%f%f%f%f\n",
  191. X
  192. X--- 30,37 -----
  193. X          cleanup();
  194. X      }
  195. X  
  196. X!     fgets(inp, 160, fptr);            /* Read in comment line */
  197. X!     fgets(inp, 160, fptr);            /* Eat the spacer */
  198. X  
  199. X      for (i = 1; i < MAXLM+1; i++) {        /* Munch that damn line!! */
  200. X          if (fscanf(fptr, "%s%s%d%d%d%d%d%d%d%d%d%f%f%f%f\n",
  201. X***************
  202. X*** 35,41
  203. X      fgets(foo, 160, fp);            /* Eat the spacer */
  204. X  
  205. X      for (i = 1; i < MAXLM+1; i++) {        /* Munch that damn line!! */
  206. X!         if (fscanf(fp, "%s%s%d%d%d%d%d%d%d%d%d%f%f%f%f\n",
  207. X                 e[i].name, e[i].sym, &e[i].anum, &e[i].amass, &e[i].fam,
  208. X                 &e[i].row, &e[i].val, &e[i].melt, &e[i].boil,
  209. X                 &e[i].fio, &e[i].year, &e[i].eneg, &e[i].spht,
  210. X
  211. X--- 34,40 -----
  212. X      fgets(inp, 160, fptr);            /* Eat the spacer */
  213. X  
  214. X      for (i = 1; i < MAXLM+1; i++) {        /* Munch that damn line!! */
  215. X!         if (fscanf(fptr, "%s%s%d%d%d%d%d%d%d%d%d%f%f%f%f\n",
  216. X                 e[i].name, e[i].sym, &e[i].anum, &e[i].amass, &e[i].fam,
  217. X                 &e[i].row, &e[i].val, &e[i].melt, &e[i].boil,
  218. X                 &e[i].fio, &e[i].year, &e[i].eneg, &e[i].spht,
  219. X***************
  220. X*** 42,46
  221. X                 &e[i].dens, &e[i].arad) == EOF)
  222. X                     break;
  223. X      }
  224. X!     fclose(fp);                /* Be nice and neat */
  225. X  }
  226. X
  227. X--- 41,45 -----
  228. X                 &e[i].dens, &e[i].arad) == EOF)
  229. X                     break;
  230. X      }
  231. X!     fclose(fptr);                /* Be nice and neat */
  232. X  }
  233. diff -c3 Original/esort.c Patch01/esort.c
  234. X*** Original/esort.c    Wed Jun 20 23:17:50 1990
  235. X--- Patch01/esort.c    Wed Jun 20 23:47:31 1990
  236. X***************
  237. X*** 27,33
  238. X   */
  239. X  esort()
  240. X  {
  241. X!     float    x = 0.0;            /* floating integer for cmp */
  242. X  
  243. X      if (dosort[0].wch == 0)            /* No chars to sort */
  244. X          return(1);
  245. X
  246. X--- 27,33 -----
  247. X   */
  248. X  esort()
  249. X  {
  250. X!     x = 0.0;            /* floating integer for cmp */
  251. X  
  252. X      if (dosort[0].wch == 0)            /* No chars to sort */
  253. X          return(1);
  254. diff -c3 Original/looke.c Patch01/looke.c
  255. X*** Original/looke.c    Wed Jun 20 23:17:52 1990
  256. X--- Patch01/looke.c    Wed Jun 20 23:47:30 1990
  257. X***************
  258. X*** 70,76
  259. X      
  260. X  looke()
  261. X  {
  262. X!     char    *str,                /* Random input string */
  263. X          srch[80],            /* String comparison */
  264. X          c = '5';            /* choice input */
  265. X      noecho(); crmode();
  266. X
  267. X--- 70,76 -----
  268. X      
  269. X  looke()
  270. X  {
  271. X!     char    *strn,                /* Random input string */
  272. X          srch[80],            /* String comparison */
  273. X          c = '5';            /* choice input */
  274. X      noecho(); crmode();
  275. X***************
  276. X*** 90,96
  277. X      noecho();
  278. X      crmode();
  279. X      while (c < '1' || c > '4')
  280. X!         c = wgetch();
  281. X  
  282. X      if (c == '4') {
  283. X          wprintw(mn, "Return to Main Menu.");
  284. X
  285. X--- 90,96 -----
  286. X      noecho();
  287. X      crmode();
  288. X      while (c < '1' || c > '4')
  289. X!         c = wgetch(mn);
  290. X  
  291. X      if (c == '4') {
  292. X          wprintw(mn, "Return to Main Menu.");
  293. X***************
  294. X*** 135,142
  295. X      wclear(mn); wrefresh(mn);
  296. X      for (i = 1; i < MAXLM; i++) {    /* Look for appropriate element */
  297. X          switch(c) {        /* then display it */
  298. X!             case '1': str = e[i].name;
  299. X!                 if (strncmp(srch, str, sizeof(srch)) == 0) {
  300. X                      disp(e[i].anum); goto nd;
  301. X                  } else
  302. X                      break;
  303. X
  304. X--- 135,142 -----
  305. X      wclear(mn); wrefresh(mn);
  306. X      for (i = 1; i < MAXLM; i++) {    /* Look for appropriate element */
  307. X          switch(c) {        /* then display it */
  308. X!             case '1': strn = e[i].name;
  309. X!                 if (strncmp(srch, strn, sizeof(srch)) == 0) {
  310. X                      disp(e[i].anum); goto nd;
  311. X                  } else
  312. X                      break;
  313. X***************
  314. X*** 145,152
  315. X                      disp(e[i].anum); goto nd;
  316. X                  } else
  317. X                      break;
  318. X!             case '3': str = e[i].sym;
  319. X!                 if (strncmp(srch, str, sizeof(srch)) == 0) {
  320. X                      disp(e[i].anum); goto nd;
  321. X                  } else
  322. X                      break;
  323. X
  324. X--- 145,152 -----
  325. X                      disp(e[i].anum); goto nd;
  326. X                  } else
  327. X                      break;
  328. X!             case '3': strn = e[i].sym;
  329. X!                 if (strncmp(srch, strn, sizeof(srch)) == 0) {
  330. X                      disp(e[i].anum); goto nd;
  331. X                  } else
  332. X                      break;
  333. X***************
  334. X*** 159,163
  335. X      wclear(mn); wrefresh(mn);
  336. X      return(0);
  337. X  }
  338. X- 
  339. X-         
  340. X
  341. X--- 159,161 -----
  342. X      wclear(mn); wrefresh(mn);
  343. X      return(0);
  344. X  }
  345. diff -c3 Original/main.c Patch01/main.c
  346. X*** Original/main.c    Wed Jun 20 23:17:54 1990
  347. X--- Patch01/main.c    Wed Jun 20 23:31:33 1990
  348. X***************
  349. X*** 36,44
  350. X  #ifdef    TRANSCRIPT            /* Log time and user in file */
  351. X      time(&secs);
  352. X      bot("Logging you in..");
  353. X!     fp = fopen(TRANSCRIPT, "a+");
  354. X!     fprintf(fp, "%s logged in at %s", getenv("USER"), ctime(&secs));
  355. X!     fclose(fp);
  356. X  #endif    TRANSCRIPT
  357. X  
  358. X      clear();
  359. X
  360. X--- 36,51 -----
  361. X  #ifdef    TRANSCRIPT            /* Log time and user in file */
  362. X      time(&secs);
  363. X      bot("Logging you in..");
  364. X!     if ((fp = fopen(TRANSCRIPT, "a+")) != NULL) {
  365. X!         fprintf(fp, "%s logged in at %s", getenv("USER"), ctime(&secs));
  366. X!         fclose(fp);
  367. X!     } else {
  368. X!         bot("Please set the TRANSCRIPT define in tune.h to work on your machine.");
  369. X!         sleep(10);
  370. X!         bot("The program will exit so you can do this now.");
  371. X!         sleep(5);
  372. X!         cleanup();
  373. X!     }
  374. X  #endif    TRANSCRIPT
  375. X  
  376. X      clear();
  377. X***************
  378. X*** 66,72
  379. X      wrefresh(btm);    /* transcript flag (trans) */
  380. X      c = getchar();
  381. X      if (c == 'y') {
  382. X!         trans++;
  383. X          wclear(btm);
  384. X          mvwaddstr(btm, 0, 0, "Please enter your last name for the transcript: ");
  385. X          wrefresh(btm);
  386. X
  387. X--- 73,79 -----
  388. X      wrefresh(btm);    /* transcript flag (trans) */
  389. X      c = getchar();
  390. X      if (c == 'y') {
  391. X!         trans = 1;
  392. X          wclear(btm);
  393. X          mvwaddstr(btm, 0, 0, "Please enter your last name for the transcript: ");
  394. X          wrefresh(btm);
  395. X***************
  396. X*** 75,81
  397. X          sprintf(str, "%d.chemtab", getpid());
  398. X          fp = fopen(str, "w");
  399. X          fprintf(fp, "*** ChemTab - Periodic Table Database - Transcript for >> %s <<", lnm);
  400. X-         /* \n will be added later! */
  401. X      }
  402. X      else if (c != 'n') {
  403. X          mvwaddstr(btm, 0, 58, "(y or n) ");
  404. X
  405. X--- 82,87 -----
  406. X          sprintf(str, "%d.chemtab", getpid());
  407. X          fp = fopen(str, "w");
  408. X          fprintf(fp, "*** ChemTab - Periodic Table Database - Transcript for >> %s <<", lnm);
  409. X      }
  410. X      else if (c != 'n') {
  411. X          mvwaddstr(btm, 0, 58, "(y or n) ");
  412. diff -c3 Original/ptabl.c Patch01/ptabl.c
  413. X*** Original/ptabl.c    Wed Jun 20 23:17:55 1990
  414. X--- Patch01/ptabl.c    Wed Jun 20 23:47:31 1990
  415. X***************
  416. X*** 24,30
  417. X  {
  418. X      FILE    *fd;        /* Periodic table is in a file */
  419. X      char    foo[80];    /* And we need to read it into something */
  420. X!     int    x;
  421. X  
  422. X      if ((fd = fopen(TABLE, "r")) == NULL) {
  423. X          bot("Cannot open Periodic Table for reading..");
  424. X
  425. X--- 24,30 -----
  426. X  {
  427. X      FILE    *fd;        /* Periodic table is in a file */
  428. X      char    foo[80];    /* And we need to read it into something */
  429. X!     int    n;        /* element number reference */
  430. X  
  431. X      if ((fd = fopen(TABLE, "r")) == NULL) {
  432. X          bot("Cannot open Periodic Table for reading..");
  433. X***************
  434. X*** 42,52
  435. X      fclose(fd);
  436. X      tablsort();            /* Put characteristics on screen */
  437. X      for (i = 1; i < gtot+1; i++) {    /* format and print element sym. */
  438. X!         x = sub1[i];
  439. X!         if (e[x].anum > 56 && e[x].anum < 72)
  440. X!             wmove(graph, horz[8], (13 + ((e[x].fam - 1) * 3)));
  441. X!         else if (e[x].anum > 88 && e[x].anum < 104)
  442. X!             wmove(graph, horz[9], (13 + ((e[x].fam - 1) * 3)));
  443. X          else
  444. X              wmove(graph, horz[e[x].row], (1 + ((e[x].fam - 1) * 3)));
  445. X  
  446. X
  447. X--- 42,52 -----
  448. X      fclose(fd);
  449. X      tablsort();            /* Put characteristics on screen */
  450. X      for (i = 1; i < gtot+1; i++) {    /* format and print element sym. */
  451. X!         n = sub1[i];
  452. X!         if (e[n].anum > 56 && e[n].anum < 72)
  453. X!             wmove(graph, horz[8], (13 + ((e[n].fam - 1) * 3)));
  454. X!         else if (e[n].anum > 88 && e[n].anum < 104)
  455. X!             wmove(graph, horz[9], (13 + ((e[n].fam - 1) * 3)));
  456. X          else
  457. X              wmove(graph, horz[e[n].row], (1 + ((e[n].fam - 1) * 3)));
  458. X  
  459. X***************
  460. X*** 48,54
  461. X          else if (e[x].anum > 88 && e[x].anum < 104)
  462. X              wmove(graph, horz[9], (13 + ((e[x].fam - 1) * 3)));
  463. X          else
  464. X!             wmove(graph, horz[e[x].row], (1 + ((e[x].fam - 1) * 3)));
  465. X  
  466. X          wstandout(graph);
  467. X          wprintw(graph, "%2s", e[x].sym);
  468. X
  469. X--- 48,54 -----
  470. X          else if (e[n].anum > 88 && e[n].anum < 104)
  471. X              wmove(graph, horz[9], (13 + ((e[n].fam - 1) * 3)));
  472. X          else
  473. X!             wmove(graph, horz[e[n].row], (1 + ((e[n].fam - 1) * 3)));
  474. X  
  475. X          wstandout(graph);
  476. X          wprintw(graph, "%2s", e[n].sym);
  477. X***************
  478. X*** 51,57
  479. X              wmove(graph, horz[e[x].row], (1 + ((e[x].fam - 1) * 3)));
  480. X  
  481. X          wstandout(graph);
  482. X!         wprintw(graph, "%2s", e[x].sym);
  483. X          wrefresh(graph);
  484. X          wstandend(graph);
  485. X      }
  486. X
  487. X--- 51,57 -----
  488. X              wmove(graph, horz[e[n].row], (1 + ((e[n].fam - 1) * 3)));
  489. X  
  490. X          wstandout(graph);
  491. X!         wprintw(graph, "%2s", e[n].sym);
  492. X          wrefresh(graph);
  493. X          wstandend(graph);
  494. X      }
  495. diff -c3 Original/schar.c Patch01/schar.c
  496. X*** Original/schar.c    Wed Jun 20 23:17:59 1990
  497. X--- Patch01/schar.c    Wed Jun 20 23:47:32 1990
  498. X***************
  499. X*** 86,93
  500. X   */
  501. X  schar()
  502. X  {
  503. X!     int    x, cur;
  504. X!     char    str[50];
  505. X  
  506. X      noecho();
  507. X      crmode();
  508. X
  509. X--- 86,92 -----
  510. X   */
  511. X  schar()
  512. X  {
  513. X!     int    n, cur;
  514. X  
  515. X      noecho();
  516. X      crmode();
  517. X***************
  518. X*** 112,119
  519. X          echo();
  520. X          nocrmode();
  521. X          gets(str);
  522. X!         x = atoi(str);
  523. X!         switch(x) {
  524. X              case 14:        /* Main Menu */
  525. X                  esort();
  526. X                  return(0);
  527. X
  528. X--- 111,118 -----
  529. X          echo();
  530. X          nocrmode();
  531. X          gets(str);
  532. X!         n = atoi(str);
  533. X!         switch(n) {
  534. X              case 14:        /* Main Menu */
  535. X                  esort();
  536. X                  return(0);
  537. X***************
  538. X*** 130,136
  539. X                  wrefresh(mn);
  540. X                  goto lop1;
  541. X              default:
  542. X!                 if (x < 1 || x > 15)
  543. X                      goto lop2;
  544. X                  else
  545. X                      break;
  546. X
  547. X--- 129,135 -----
  548. X                  wrefresh(mn);
  549. X                  goto lop1;
  550. X              default:
  551. X!                 if (n < 1 || n > 15)
  552. X                      goto lop2;
  553. X                  else
  554. X                      break;
  555. X***************
  556. X*** 136,142
  557. X                      break;
  558. X          }
  559. X          cur = whichone();
  560. X!         if (dosort[0].wch == x || dosort[1].wch == x) {
  561. X              bot("This characteristic is already being sorted.");
  562. X              sleep(3);
  563. X              bot(" ");
  564. X
  565. X--- 135,141 -----
  566. X                      break;
  567. X          }
  568. X          cur = whichone();
  569. X!         if (dosort[0].wch == n || dosort[1].wch == n) {
  570. X              bot("This characteristic is already being sorted.");
  571. X              sleep(3);
  572. X              bot(" ");
  573. X***************
  574. X*** 146,152
  575. X              if (getchar() == 'y') {
  576. X                  bot(" ");
  577. X                  for (i = 0; i < 2; i++) {
  578. X!                     if (dosort[i].wch == x)
  579. X                          cur = i;
  580. X                  }
  581. X                  goto lop3;
  582. X
  583. X--- 145,151 -----
  584. X              if (getchar() == 'y') {
  585. X                  bot(" ");
  586. X                  for (i = 0; i < 2; i++) {
  587. X!                     if (dosort[i].wch == n)
  588. X                          cur = i;
  589. X                  }
  590. X                  goto lop3;
  591. X***************
  592. X*** 166,172
  593. X              bot(" ");
  594. X              goto lop2;
  595. X          }
  596. X! lop3:        dosort[cur].wch = x;
  597. X          wclear(mn); wrefresh(mn);
  598. X          wmove(mn, 1, 0);
  599. X          wprintw(mn, "You would like to select some elements with their '%s' being", sopts[x].chst);
  600. X
  601. X--- 165,171 -----
  602. X              bot(" ");
  603. X              goto lop2;
  604. X          }
  605. X! lop3:        dosort[cur].wch = n;
  606. X          wclear(mn); wrefresh(mn);
  607. X          wmove(mn, 1, 0);
  608. X          wprintw(mn, "You would like to select some elements with their '%s' being", sopts[n].chst);
  609. X***************
  610. X*** 169,175
  611. X  lop3:        dosort[cur].wch = x;
  612. X          wclear(mn); wrefresh(mn);
  613. X          wmove(mn, 1, 0);
  614. X!         wprintw(mn, "You would like to select some elements with their '%s' being", sopts[x].chst);
  615. X          mvwaddstr(mn, 3, 0, "1] Equal To");
  616. X          wmove(mn, 4, 0); wprintw(mn, "2] %s", sopts[x].upline);
  617. X          wmove(mn, 5, 0); wprintw(mn, "3] %s", sopts[x].dnline);
  618. X
  619. X--- 168,174 -----
  620. X  lop3:        dosort[cur].wch = n;
  621. X          wclear(mn); wrefresh(mn);
  622. X          wmove(mn, 1, 0);
  623. X!         wprintw(mn, "You would like to select some elements with their '%s' being", sopts[n].chst);
  624. X          mvwaddstr(mn, 3, 0, "1] Equal To");
  625. X          wmove(mn, 4, 0); wprintw(mn, "2] %s", sopts[n].upline);
  626. X          wmove(mn, 5, 0); wprintw(mn, "3] %s", sopts[n].dnline);
  627. X***************
  628. X*** 171,178
  629. X          wmove(mn, 1, 0);
  630. X          wprintw(mn, "You would like to select some elements with their '%s' being", sopts[x].chst);
  631. X          mvwaddstr(mn, 3, 0, "1] Equal To");
  632. X!         wmove(mn, 4, 0); wprintw(mn, "2] %s", sopts[x].upline);
  633. X!         wmove(mn, 5, 0); wprintw(mn, "3] %s", sopts[x].dnline);
  634. X          wmove(mn, 6, 0); wprintw(mn, "4] Exit (will erase characteristic)");
  635. X          mvwaddstr(mn, 8, 9, "the amount you select next.");
  636. X          if (hlp)
  637. X
  638. X--- 170,177 -----
  639. X          wmove(mn, 1, 0);
  640. X          wprintw(mn, "You would like to select some elements with their '%s' being", sopts[n].chst);
  641. X          mvwaddstr(mn, 3, 0, "1] Equal To");
  642. X!         wmove(mn, 4, 0); wprintw(mn, "2] %s", sopts[n].upline);
  643. X!         wmove(mn, 5, 0); wprintw(mn, "3] %s", sopts[n].dnline);
  644. X          wmove(mn, 6, 0); wprintw(mn, "4] Exit (will erase characteristic)");
  645. X          mvwaddstr(mn, 8, 9, "the amount you select next.");
  646. X          if (hlp)
  647. X***************
  648. X*** 192,198
  649. X          wclear(mn);
  650. X          wrefresh(mn);
  651. X          wmove(mn, 1, 0);
  652. X!         wprintw(mn, "You want to select some elements with the '%s' being ", sopts[x].chst);
  653. X          switch(dosort[cur].sgn) {
  654. X              case EQUAL:
  655. X                  wprintw(mn, "Equal to");
  656. X
  657. X--- 191,197 -----
  658. X          wclear(mn);
  659. X          wrefresh(mn);
  660. X          wmove(mn, 1, 0);
  661. X!         wprintw(mn, "You want to select some elements with the '%s' being ", sopts[n].chst);
  662. X          switch(dosort[cur].sgn) {
  663. X              case EQUAL:
  664. X                  wprintw(mn, "Equal to");
  665. X***************
  666. X*** 198,204
  667. X                  wprintw(mn, "Equal to");
  668. X                  break;
  669. X              case GREATER:
  670. X!                 wprintw(mn, "%s", sopts[x].upline);
  671. X                  break;
  672. X              default:
  673. X                  wprintw(mn, "%s", sopts[x].dnline);
  674. X
  675. X--- 197,203 -----
  676. X                  wprintw(mn, "Equal to");
  677. X                  break;
  678. X              case GREATER:
  679. X!                 wprintw(mn, "%s", sopts[n].upline);
  680. X                  break;
  681. X              default:
  682. X                  wprintw(mn, "%s", sopts[n].dnline);
  683. X***************
  684. X*** 201,207
  685. X                  wprintw(mn, "%s", sopts[x].upline);
  686. X                  break;
  687. X              default:
  688. X!                 wprintw(mn, "%s", sopts[x].dnline);
  689. X                  break;
  690. X          }
  691. X          if (hlp)
  692. X
  693. X--- 200,206 -----
  694. X                  wprintw(mn, "%s", sopts[n].upline);
  695. X                  break;
  696. X              default:
  697. X!                 wprintw(mn, "%s", sopts[n].dnline);
  698. X                  break;
  699. X          }
  700. X          if (hlp)
  701. diff -c3 Original/scrmisc.c Patch01/scrmisc.c
  702. X*** Original/scrmisc.c    Wed Jun 20 23:18:00 1990
  703. X--- Patch01/scrmisc.c    Wed Jun 20 23:47:30 1990
  704. X***************
  705. X*** 15,22
  706. X   *
  707. X   * purpose:    Take ''str'' and put it on ''btm'' (window)
  708. X   */
  709. X! bot(str)
  710. X! char    *str;
  711. X  {
  712. X      wclear(btm); mvwaddstr(btm, 0, 0, str); wrefresh(btm);
  713. X  }
  714. X
  715. X--- 15,22 -----
  716. X   *
  717. X   * purpose:    Take ''str'' and put it on ''btm'' (window)
  718. X   */
  719. X! bot(strn)
  720. X! char    *strn;
  721. X  {
  722. X      wclear(btm); mvwaddstr(btm, 0, 0, strn); wrefresh(btm);
  723. X  }
  724. X***************
  725. X*** 18,24
  726. X  bot(str)
  727. X  char    *str;
  728. X  {
  729. X!     wclear(btm); mvwaddstr(btm, 0, 0, str); wrefresh(btm);
  730. X  }
  731. X  
  732. X  /*
  733. X
  734. X--- 18,24 -----
  735. X  bot(strn)
  736. X  char    *strn;
  737. X  {
  738. X!     wclear(btm); mvwaddstr(btm, 0, 0, strn); wrefresh(btm);
  739. X  }
  740. X  
  741. X  /*
  742. X***************
  743. X*** 40,47
  744. X  WINDOW    *win;
  745. X  int    f, z;
  746. X  {
  747. X!     int    icn;            /* Internal count */
  748. X!     if (trans) {
  749. X          if (!z) {
  750. X              for (i = 0; i < 5; i++) {
  751. X                  fputc('\n', fp);
  752. X
  753. X--- 40,49 -----
  754. X  WINDOW    *win;
  755. X  int    f, z;
  756. X  {
  757. X!     int    icn = 0;            /* Internal count */
  758. X!     if (!trans)
  759. X!         return(1);
  760. X!     else {
  761. X          if (!z) {
  762. X              for (i = 0; i < 5; i++) {
  763. X                  fputc('\n', fp);
  764. diff -c3 Original/tune.h Patch01/tune.h
  765. X*** Original/tune.h    Wed Jun 20 23:18:30 1990
  766. X--- Patch01/tune.h    Wed Jun 20 23:47:31 1990
  767. X***************
  768. X*** 4,9
  769. X   * tune.h    Site Specifics
  770. X   */
  771. X  
  772. X  /* PERTABLE is the path up to and including the list of elements, elist */
  773. X  #define PERTABLE    "/u/pulsar/Utilities/Chem/Chemtab/elist"
  774. X  
  775. X
  776. X--- 4,14 -----
  777. X   * tune.h    Site Specifics
  778. X   */
  779. X  
  780. X+ /* PRINTER is the printer program or shell script you use to print on
  781. X+    the desired printer for Chemtab output.  Preferably, when using lpr,
  782. X+    you want to add the '-h' function to skip the header page. */
  783. X+ #define PRINTER        "/usr/local/bin/letter -h"
  784. X+ 
  785. X  /* PERTABLE is the path up to and including the list of elements, elist */
  786. X  #define PERTABLE    "/u/pulsar/Utilities/Chem/Chemtab/elist"
  787. X  
  788. X***************
  789. X*** 13,18
  790. X  /* TABLE is the path up to and including the periodic table outline, pertab */
  791. X  #define TABLE        "/u/pulsar/Utilities/Chem/Chemtab/pertab"
  792. X  
  793. X! /* TRANSCRIPT is the path of a logfile of who uses the program.
  794. X                if it is not defined, then no log is made. */
  795. X  #define TRANSCRIPT    "/u/pulsar/Utilities/Chem/Chemtab/logfile"
  796. X
  797. X--- 18,23 -----
  798. X  /* TABLE is the path up to and including the periodic table outline, pertab */
  799. X  #define TABLE        "/u/pulsar/Utilities/Chem/Chemtab/pertab"
  800. X  
  801. X! /* TRANSCRIPT is the path to the logfile which lists who uses the program.
  802. X                if it is not defined, then no log is made. */
  803. X  #define TRANSCRIPT    "/u/pulsar/Utilities/Chem/Chemtab/logfile"
  804. diff -c3 Original/vdata.c Patch01/vdata.c
  805. X*** Original/vdata.c    Wed Jun 20 23:18:02 1990
  806. X--- Patch01/vdata.c    Wed Jun 20 23:47:32 1990
  807. X***************
  808. X*** 45,51
  809. X   */
  810. X  vdata()
  811. X  {
  812. X!     int    x = 0, flg = 0, factor = 1, l, m;
  813. X  
  814. X      wclear(mn);
  815. X      wrefresh(mn);
  816. X
  817. X--- 45,51 -----
  818. X   */
  819. X  vdata()
  820. X  {
  821. X!     int    n = 0, flg = 0, factor = 1, l, m;
  822. X  
  823. X      wclear(mn);
  824. X      wrefresh(mn);
  825. X***************
  826. X*** 77,90
  827. X          for (j = 22*i+1; j < 22*i+23; j++) {
  828. X              if (j > gtot)
  829. X                  break;
  830. X!             x = sub1[j];
  831. X!             mvwaddstr(graph, j-22*i, 0, e[x].name);
  832. X!             wmove(graph, j-22*i, 13); wprintw(graph, "%s", e[x].sym);
  833. X!             wmove(graph, j-22*i, 18); wprintw(graph, "%-d", e[x].anum);
  834. X!             wmove(graph, j-22*i, 22); wprintw(graph, "%-d", e[x].amass);
  835. X!             wmove(graph, j-22*i, 26); wprintw(graph, "%-d", e[x].fam);
  836. X!             wmove(graph, j-22*i, 29); wprintw(graph, "%-d", e[x].row);
  837. X!             if (e[x].val == VAL) {
  838. X                  wstandout(graph);
  839. X                  mvwaddstr(graph, j-22*1, 31, "X");
  840. X                  wstandend(graph);
  841. X
  842. X--- 77,90 -----
  843. X          for (j = 22*i+1; j < 22*i+23; j++) {
  844. X              if (j > gtot)
  845. X                  break;
  846. X!             n = sub1[j];
  847. X!             mvwaddstr(graph, j-22*i, 0, e[n].name);
  848. X!             wmove(graph, j-22*i, 13); wprintw(graph, "%s", e[n].sym);
  849. X!             wmove(graph, j-22*i, 18); wprintw(graph, "%-d", e[n].anum);
  850. X!             wmove(graph, j-22*i, 22); wprintw(graph, "%-d", e[n].amass);
  851. X!             wmove(graph, j-22*i, 26); wprintw(graph, "%-d", e[n].fam);
  852. X!             wmove(graph, j-22*i, 29); wprintw(graph, "%-d", e[n].row);
  853. X!             if (e[n].val == VAL) {
  854. X                  wstandout(graph);
  855. X                  mvwaddstr(graph, j-22*1, 31, "X");
  856. X                  wstandend(graph);
  857. X***************
  858. X*** 89,95
  859. X                  mvwaddstr(graph, j-22*1, 31, "X");
  860. X                  wstandend(graph);
  861. X              } else {
  862. X!                 wmove(graph, j-22*i, 31); wprintw(graph, "%d", e[x].val);
  863. X              }
  864. X              if (e[x].melt == MEL) {
  865. X                  wstandout(graph);
  866. X
  867. X--- 89,95 -----
  868. X                  mvwaddstr(graph, j-22*1, 31, "X");
  869. X                  wstandend(graph);
  870. X              } else {
  871. X!                 wmove(graph, j-22*i, 31); wprintw(graph, "%d", e[n].val);
  872. X              }
  873. X              if (e[n].melt == MEL) {
  874. X                  wstandout(graph);
  875. X***************
  876. X*** 91,97
  877. X              } else {
  878. X                  wmove(graph, j-22*i, 31); wprintw(graph, "%d", e[x].val);
  879. X              }
  880. X!             if (e[x].melt == MEL) {
  881. X                  wstandout(graph);
  882. X                  mvwaddstr(graph, j-22*i, 33, "N/F");
  883. X                  wstandend(graph);
  884. X
  885. X--- 91,97 -----
  886. X              } else {
  887. X                  wmove(graph, j-22*i, 31); wprintw(graph, "%d", e[n].val);
  888. X              }
  889. X!             if (e[n].melt == MEL) {
  890. X                  wstandout(graph);
  891. X                  mvwaddstr(graph, j-22*i, 33, "N/F");
  892. X                  wstandend(graph);
  893. X***************
  894. X*** 96,102
  895. X                  mvwaddstr(graph, j-22*i, 33, "N/F");
  896. X                  wstandend(graph);
  897. X              } else {
  898. X!                 wmove(graph, j-22*i, 33); wprintw(graph, "%-d", e[x].melt);
  899. X              }
  900. X              if (e[x].boil == BOI) {
  901. X                  wstandout(graph);
  902. X
  903. X--- 96,102 -----
  904. X                  mvwaddstr(graph, j-22*i, 33, "N/F");
  905. X                  wstandend(graph);
  906. X              } else {
  907. X!                 wmove(graph, j-22*i, 33); wprintw(graph, "%-d", e[n].melt);
  908. X              }
  909. X              if (e[n].boil == BOI) {
  910. X                  wstandout(graph);
  911. X***************
  912. X*** 98,104
  913. X              } else {
  914. X                  wmove(graph, j-22*i, 33); wprintw(graph, "%-d", e[x].melt);
  915. X              }
  916. X!             if (e[x].boil == BOI) {
  917. X                  wstandout(graph);
  918. X                  mvwaddstr(graph, j-22*i, 38, "N/F");
  919. X                  wstandend(graph);
  920. X
  921. X--- 98,104 -----
  922. X              } else {
  923. X                  wmove(graph, j-22*i, 33); wprintw(graph, "%-d", e[n].melt);
  924. X              }
  925. X!             if (e[n].boil == BOI) {
  926. X                  wstandout(graph);
  927. X                  mvwaddstr(graph, j-22*i, 38, "N/F");
  928. X                  wstandend(graph);
  929. X***************
  930. X*** 103,109
  931. X                  mvwaddstr(graph, j-22*i, 38, "N/F");
  932. X                  wstandend(graph);
  933. X              } else {
  934. X!                 wmove(graph, j-22*i, 38); wprintw(graph, "%-d", e[x].boil);
  935. X              }
  936. X              if (e[x].fio == FIO) {
  937. X                  wstandout(graph);
  938. X
  939. X--- 103,109 -----
  940. X                  mvwaddstr(graph, j-22*i, 38, "N/F");
  941. X                  wstandend(graph);
  942. X              } else {
  943. X!                 wmove(graph, j-22*i, 38); wprintw(graph, "%-d", e[n].boil);
  944. X              }
  945. X              if (e[n].fio == FIO) {
  946. X                  wstandout(graph);
  947. X***************
  948. X*** 105,111
  949. X              } else {
  950. X                  wmove(graph, j-22*i, 38); wprintw(graph, "%-d", e[x].boil);
  951. X              }
  952. X!             if (e[x].fio == FIO) {
  953. X                  wstandout(graph);
  954. X                  mvwaddstr(graph, j-22*i, 43, "N/F");
  955. X                  wstandend(graph);
  956. X
  957. X--- 105,111 -----
  958. X              } else {
  959. X                  wmove(graph, j-22*i, 38); wprintw(graph, "%-d", e[n].boil);
  960. X              }
  961. X!             if (e[n].fio == FIO) {
  962. X                  wstandout(graph);
  963. X                  mvwaddstr(graph, j-22*i, 43, "N/F");
  964. X                  wstandend(graph);
  965. X***************
  966. X*** 110,116
  967. X                  mvwaddstr(graph, j-22*i, 43, "N/F");
  968. X                  wstandend(graph);
  969. X              } else {
  970. X!                 wmove(graph, j-22*i, 43); wprintw(graph, "%3d", e[x].fio);
  971. X              }
  972. X              if (e[x].year == YEA) {
  973. X                  wstandout(graph);
  974. X
  975. X--- 110,116 -----
  976. X                  mvwaddstr(graph, j-22*i, 43, "N/F");
  977. X                  wstandend(graph);
  978. X              } else {
  979. X!                 wmove(graph, j-22*i, 43); wprintw(graph, "%3d", e[n].fio);
  980. X              }
  981. X              if (e[n].year == YEA) {
  982. X                  wstandout(graph);
  983. X***************
  984. X*** 112,118
  985. X              } else {
  986. X                  wmove(graph, j-22*i, 43); wprintw(graph, "%3d", e[x].fio);
  987. X              }
  988. X!             if (e[x].year == YEA) {
  989. X                  wstandout(graph);
  990. X                  mvwaddstr(graph, j-22*i, 47, "B.C.");
  991. X                  wstandend(graph);
  992. X
  993. X--- 112,118 -----
  994. X              } else {
  995. X                  wmove(graph, j-22*i, 43); wprintw(graph, "%3d", e[n].fio);
  996. X              }
  997. X!             if (e[n].year == YEA) {
  998. X                  wstandout(graph);
  999. X                  mvwaddstr(graph, j-22*i, 47, "B.C.");
  1000. X                  wstandend(graph);
  1001. X***************
  1002. X*** 117,123
  1003. X                  mvwaddstr(graph, j-22*i, 47, "B.C.");
  1004. X                  wstandend(graph);
  1005. X              } else {
  1006. X!                 wmove(graph, j-22*i, 47); wprintw(graph, "%-d", e[x].year);
  1007. X              }
  1008. X              if (e[x].eneg == ENG) {
  1009. X                  wstandout(graph);
  1010. X
  1011. X--- 117,123 -----
  1012. X                  mvwaddstr(graph, j-22*i, 47, "B.C.");
  1013. X                  wstandend(graph);
  1014. X              } else {
  1015. X!                 wmove(graph, j-22*i, 47); wprintw(graph, "%-d", e[n].year);
  1016. X              }
  1017. X              if (e[n].eneg == ENG) {
  1018. X                  wstandout(graph);
  1019. X***************
  1020. X*** 119,125
  1021. X              } else {
  1022. X                  wmove(graph, j-22*i, 47); wprintw(graph, "%-d", e[x].year);
  1023. X              }
  1024. X!             if (e[x].eneg == ENG) {
  1025. X                  wstandout(graph);
  1026. X                  mvwaddstr(graph, j-22*i, 52, "N/F");
  1027. X                  wstandend(graph);
  1028. X
  1029. X--- 119,125 -----
  1030. X              } else {
  1031. X                  wmove(graph, j-22*i, 47); wprintw(graph, "%-d", e[n].year);
  1032. X              }
  1033. X!             if (e[n].eneg == ENG) {
  1034. X                  wstandout(graph);
  1035. X                  mvwaddstr(graph, j-22*i, 52, "N/F");
  1036. X                  wstandend(graph);
  1037. X***************
  1038. X*** 124,130
  1039. X                  mvwaddstr(graph, j-22*i, 52, "N/F");
  1040. X                  wstandend(graph);
  1041. X              } else {
  1042. X!                 wmove(graph, j-22*i, 52); wprintw(graph, "%1.1f", e[x].eneg);
  1043. X              }
  1044. X              if (e[x].spht == SPHT) {
  1045. X                  wstandout(graph);
  1046. X
  1047. X--- 124,130 -----
  1048. X                  mvwaddstr(graph, j-22*i, 52, "N/F");
  1049. X                  wstandend(graph);
  1050. X              } else {
  1051. X!                 wmove(graph, j-22*i, 52); wprintw(graph, "%1.1f", e[n].eneg);
  1052. X              }
  1053. X              if (e[n].spht == SPHT) {
  1054. X                  wstandout(graph);
  1055. X***************
  1056. X*** 126,132
  1057. X              } else {
  1058. X                  wmove(graph, j-22*i, 52); wprintw(graph, "%1.1f", e[x].eneg);
  1059. X              }
  1060. X!             if (e[x].spht == SPHT) {
  1061. X                  wstandout(graph);
  1062. X                  mvwaddstr(graph, j-22*i, 56, "N/F");
  1063. X                  wstandend(graph);
  1064. X
  1065. X--- 126,132 -----
  1066. X              } else {
  1067. X                  wmove(graph, j-22*i, 52); wprintw(graph, "%1.1f", e[n].eneg);
  1068. X              }
  1069. X!             if (e[n].spht == SPHT) {
  1070. X                  wstandout(graph);
  1071. X                  mvwaddstr(graph, j-22*i, 56, "N/F");
  1072. X                  wstandend(graph);
  1073. X***************
  1074. X*** 131,137
  1075. X                  mvwaddstr(graph, j-22*i, 56, "N/F");
  1076. X                  wstandend(graph);
  1077. X              } else {
  1078. X!                 wmove(graph, j-22*i, 56); wprintw(graph, "%1.2f", e[x].spht);
  1079. X              }
  1080. X              if (e[x].dens == DENS) {
  1081. X                  wstandout(graph);
  1082. X
  1083. X--- 131,137 -----
  1084. X                  mvwaddstr(graph, j-22*i, 56, "N/F");
  1085. X                  wstandend(graph);
  1086. X              } else {
  1087. X!                 wmove(graph, j-22*i, 56); wprintw(graph, "%1.2f", e[n].spht);
  1088. X              }
  1089. X              if (e[n].dens == DENS) {
  1090. X                  wstandout(graph);
  1091. X***************
  1092. X*** 133,139
  1093. X              } else {
  1094. X                  wmove(graph, j-22*i, 56); wprintw(graph, "%1.2f", e[x].spht);
  1095. X              }
  1096. X!             if (e[x].dens == DENS) {
  1097. X                  wstandout(graph);
  1098. X                  mvwaddstr(graph, j-22*i, 61, "N/F");
  1099. X                  wstandend(graph);
  1100. X
  1101. X--- 133,139 -----
  1102. X              } else {
  1103. X                  wmove(graph, j-22*i, 56); wprintw(graph, "%1.2f", e[n].spht);
  1104. X              }
  1105. X!             if (e[n].dens == DENS) {
  1106. X                  wstandout(graph);
  1107. X                  mvwaddstr(graph, j-22*i, 61, "N/F");
  1108. X                  wstandend(graph);
  1109. X***************
  1110. X*** 139,146
  1111. X                  wstandend(graph);
  1112. X              } else {
  1113. X                  wmove(graph, j-22*i, 61);
  1114. X!                 if (e[x].dens > 9.99)
  1115. X!                     wprintw(graph, "%2.1f", e[x].dens);
  1116. X                  else
  1117. X                      wprintw(graph, "%1.2f", e[x].dens);
  1118. X              }
  1119. X
  1120. X--- 139,146 -----
  1121. X                  wstandend(graph);
  1122. X              } else {
  1123. X                  wmove(graph, j-22*i, 61);
  1124. X!                 if (e[n].dens > 9.99)
  1125. X!                     wprintw(graph, "%2.1f", e[n].dens);
  1126. X                  else
  1127. X                      wprintw(graph, "%1.2f", e[n].dens);
  1128. X              }
  1129. X***************
  1130. X*** 142,148
  1131. X                  if (e[x].dens > 9.99)
  1132. X                      wprintw(graph, "%2.1f", e[x].dens);
  1133. X                  else
  1134. X!                     wprintw(graph, "%1.2f", e[x].dens);
  1135. X              }
  1136. X              if (e[x].arad == ARD) {
  1137. X                  wstandout(graph);
  1138. X
  1139. X--- 142,148 -----
  1140. X                  if (e[n].dens > 9.99)
  1141. X                      wprintw(graph, "%2.1f", e[n].dens);
  1142. X                  else
  1143. X!                     wprintw(graph, "%1.2f", e[n].dens);
  1144. X              }
  1145. X              if (e[n].arad == ARD) {
  1146. X                  wstandout(graph);
  1147. X***************
  1148. X*** 144,150
  1149. X                  else
  1150. X                      wprintw(graph, "%1.2f", e[x].dens);
  1151. X              }
  1152. X!             if (e[x].arad == ARD) {
  1153. X                  wstandout(graph);
  1154. X                  mvwaddstr(graph, j-22*i, 66, "N/F");
  1155. X                  wstandend(graph);
  1156. X
  1157. X--- 144,150 -----
  1158. X                  else
  1159. X                      wprintw(graph, "%1.2f", e[n].dens);
  1160. X              }
  1161. X!             if (e[n].arad == ARD) {
  1162. X                  wstandout(graph);
  1163. X                  mvwaddstr(graph, j-22*i, 66, "N/F");
  1164. X                  wstandend(graph);
  1165. X***************
  1166. X*** 149,155
  1167. X                  mvwaddstr(graph, j-22*i, 66, "N/F");
  1168. X                  wstandend(graph);
  1169. X              } else {
  1170. X!                 wmove(graph, j-22*i, 66); wprintw(graph, "%1.2f", e[x].arad);
  1171. X              }
  1172. X              wrefresh(graph);
  1173. X          }
  1174. X
  1175. X--- 149,155 -----
  1176. X                  mvwaddstr(graph, j-22*i, 66, "N/F");
  1177. X                  wstandend(graph);
  1178. X              } else {
  1179. X!                 wmove(graph, j-22*i, 66); wprintw(graph, "%1.2f", e[n].arad);
  1180. X              }
  1181. X              wrefresh(graph);
  1182. X          }
  1183. END_OF_FILE
  1184. if test 28115 -ne `wc -c <'patch01'`; then
  1185.     echo shar: \"'patch01'\" unpacked with wrong size!
  1186. fi
  1187. # end of 'patch01'
  1188. fi
  1189. if test -f 'VERSION' -a "${1}" != "-c" ; then 
  1190.   echo shar: Will not clobber existing file \"'VERSION'\"
  1191. else
  1192. echo shar: Extracting \"'VERSION'\" \(54 characters\)
  1193. sed "s/^X//" >'VERSION' <<'END_OF_FILE'
  1194. Currently, you have Chemtab Version 1.0, Patchlevel 1
  1195. END_OF_FILE
  1196. if test 54 -ne `wc -c <'VERSION'`; then
  1197.     echo shar: \"'VERSION'\" unpacked with wrong size!
  1198. fi
  1199. chmod +x 'VERSION'
  1200. # end of 'VERSION'
  1201. fi
  1202. echo shar: End of shell archive.
  1203. exit 0
  1204.  
  1205.